package com.niguang.work.labour.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 部门工地关联表
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AdminDeptSite extends Model<AdminDeptSite> {

    public static final String ID = "id";
    public static final String DEPT_ID = "dept_id";
    public static final String SITE_ID = "site_id";
    public static final String CREATE_TIME = "create_time";
    public static final String UPDATE_TIME = "update_time";
    public static final String DEL_FLAG = "del_flag";
    private static final long serialVersionUID = 1L;
    private Long id;
        /**
     * 部门id
     */
         private Long deptId;
        /**
     * 工地id
     */
         private Long siteId;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    private Boolean delFlag;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
